package com.fanxuankai.boot.log.config;

import com.fanxuankai.boot.log.LogDetailService;
import com.fanxuankai.boot.log.User;
import org.springframework.stereotype.Component;

import java.util.Collections;
import java.util.List;
import java.util.UUID;

/**
 * 自定义 LogDetailService
 *
 * @author fanxuankai
 */
@Component
public class MyLogDetailServiceImpl implements LogDetailService {
    @Override
    public User getUser() {
        User user = new User();
        user.setId(1L);
        user.setName("Micheal Jackson");
        return user;
    }

    @Override
    public List<String> customValues() {
        return Collections.singletonList(UUID.randomUUID().toString());
    }
}
